home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 43.zip
/
ANC 15.adf
/
REXX
/
listitem.txed
< prev
next >
Wrap
Text File
|
1987-01-01
|
1KB
|
54 lines
/* LISTITEM.txed
This is a TxEd Plus / AREXX macro.
It will add an item from the current window into the
TXLIST window. If no TXLIST window is open, this macro will
start a new TxEd Plus invocation using LISTINIT as the
startup macro.
Note this macro allows up to ten lines above the cursor, and a total
of 15 lines, to be copied. Adjust the two "do" loops for different
size limits NOTE - THIS MACRO REQUIRES THE COMPLETE AREXX.
*/
Daporte = getclip("TxLIST")
if ( Daporte = "" ) then do
MSG "Creating list window"
ADDRESS COMMAND E TEMPFILE STARTUP LISTINIT
ADDRESS COMMAND WAIT 2
Daporte = getclip("TxLIST")
if ( Daporte = "" ) then do
MSG "List Window Not Found!"
exit(20)
end
end
LOCK
OPTIONS RESULTS
do i=0 to 10
'SOL'
'MARK 1'
'UP'
if ( RC > 0) then leave i
'STATUS L'
if length(RESULT) <=1 then leave i
end i
do j=0 to 15
'DOWN'
'Status L'
if length(RESULT) <=1 then leave j
end j
'REDISPLAY'
'COPY'
'TOP'
ADDRESS VALUE Daporte
'BOTTOM'
'INSERT *N'
'PASTE'